<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <script type="text/javascript">
                    function submete(){
                        document.getElementById('username').value = document.getElementById('inputUsername').value;
                        document.getElementById('password').value = document.getElementById('inputPassword').value;
                        document.getElementById('authform').submit();
                    }
        </script>

        <form id="authform" method="POST" action="j_security_check">
            <input id="username" type="hidden" name="j_username" />
            <input id="password" type="hidden" name="j_password" />
        </form>

        <h:form prependId="false" id="formLogin">
            <center>
                <br/> <br/>
                <h1 style="width: 400px;" class="title ui-widget-header ui-corner-all">Monitoramento WifiUel</h1>
                <br/> <br/> <br/>
                <h:panelGrid columns="2" style="text-align: left;">
                    <h:outputLabel value="Username:"/>
                    <h:inputText id="inputUsername" style="width: 140px;"/>
                    <h:outputLabel value="Password:"/>
                    <p:keyboard id="inputPassword" title="Para Maior Segurança Utilize o Teclado Virtual" style="width: 140px;" clearLabel="Limpa" closeLabel="Fecha" backspaceLabel="&larr;"  showMode="both" password="true" />
                    <p:commandButton value="Entrar" onclick="submete();"/>
                </h:panelGrid>
                <br/>
                <br/>
                <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/>
            </center>
        </h:form>


    </h:body>
</html>

